package xin.fsqr520.project.domain.vo;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 返回给前端的动态列表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PostVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long postId; //文章id
    private Long userId; //发布者id
    private String avatar;//发布者头像
    private String username;//发布者用户名
    private String timeAgo;//多久之前
    private String content;
    private List<String> images;//使用到的图片
    private int likes;
    private int comments;
    private int shares;
    private boolean Liked;//当前用户是否点赞过

    private String topic;
}
